package com.qcsec.common.consts;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * 通用常量
 *
 * @author admin
 */
public interface CommonCst {
    List<String> ZIP_MIME_TYPE = Stream.of("application/zip", "application/octet-stream", "application/x-zip-compressed").collect(Collectors.toList());
    List<String> RAR_MIME_TYPE = Stream.of("application/vnd.rar").collect(Collectors.toList());
    //   ------------时间格式化----------------
    /**
     * 日期格式化
     */
    String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
    /**
     * 日期格式化
     */
    String DATE_PATTERN = "yyyy-MM-dd";
    /**
     * 日期格式化
     */
    String TIME_PATTERN = "HH:mm:ss";

//   ------------ 响应code ----------------
    /**
     * 成功标记
     */
    Integer RESPONSE_SUCCESS = 200;

    String RESPONSE_SUCCESS_MSG = "请求成功！！";

    /**
     * 失败标记
     */
    Integer RESPONSE_FAIL = 500;

    String RESPONSE_FAIL_MSG = "请求失败！！";

    String CONTENT_TYPE = "application/json;charset=utf-8";

//   ------------ mybatis ----------------
    /**
     *  自定义主键生成器名称
     */
    String KEY_GEN = "mybatis_flex_key_generator";
}
